package com.hxxy.wyp.petsLover.common.services.base.backend;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hxxy.wyp.petsLover.common.entities.Admin;
import com.hxxy.wyp.petsLover.common.entities.vo.req.AdminAddReq;
import com.hxxy.wyp.petsLover.common.entities.vo.req.LoginInfo;
import com.hxxy.wyp.petsLover.common.entities.vo.resp.AdminRolePermissionVo;
import com.hxxy.wyp.petsLover.common.entities.vo.resp.AdminVo;
import com.hxxy.wyp.petsLover.common.entities.vo.resp.AuthInfo;

import java.util.List;

public interface AdminService extends IService<Admin> {
    AuthInfo login(LoginInfo loginInfo);

    List<String> getAdminPermissions(String loginId);

    List<String> getAdminRole(String loginId);

    Admin findById(Long userId);

    AdminRolePermissionVo selectAll();

    Integer addAdmin(AdminAddReq adminAddReq);

    Integer deleteAdmin(String id);

    Integer updateAdmin(AdminAddReq adminAddReq);
}
